"""
请求数据模型
"""
from pydantic import BaseModel, Field


class QueryRequest(BaseModel):
    """查询请求模型"""
    question: str = Field(..., min_length=1, description="用户问题")
    
    model_config = {
        "json_schema_extra": {
            "examples": [
                {
                    "question": "这段文本主要讲了什么内容？"
                }
            ]
        }
    }

